package com.example.mybubbleshooter;

import java.util.Queue;

import android.util.Log;

public class Map {

	
	Queue<Ball> staticBalls;
	public Map() {

	}

	public static void generateMap()
	{
		Ball[] temp=Global.defaultBallsArray;
		int one=0;
		int top=0;
		for(int i=0;i<4;i++)
		{
			for(int j=0;j<8-one;j++)
			{
				Ball b=temp[top++];
				b.setStatic(true);
				b.setCenterX(Global.columnIndexes[one][j]+Global.ballRadius);
				b.setCenterY(Global.layerIndex[i]+Global.ballRadius);
				Log.d("index", "x= "+b.getCenterX()+"y= "+b.getCenterY());
				Global.map[i][j]=b;
				Global.currentStaticBalls.add(b);
				
			}
			one^=1;
		}
		Global.maxLayer=5;
		
	}
	
}
